"""发送飞书消息"""
import requests
def send_feishu_msg():
    FEISHU_API = "https://open.feishu.cn/open-apis/bot/v2/hook/660063e7-6f2a-4136-b978-84a076d09d57"
    massage_data = [
        [
            {
                "tag":"text",
                "text":"星云erp"
            }
        ],
        [
            {
                "tag":"a",
                "text":"查看自动化报告",
                "href":"https://www.baidu.com/"
            }
        ]
    ]
    payload = {
        "msg_type":"post",
        "content":{
            "post":{
                "zh_cn":{
                    "title":"报告链接",
                    "content":massage_data
                }
            }
        }
    }
    r = requests.request(
        method="post",
        url=FEISHU_API,
        json=payload
    )
    return r